﻿using System;
using System.Collections.Generic;

namespace TileGert
{
  /// <summary>
  /// GertPolygon is a simple polygon.
  /// </summary>
  public class GertPolygon
  {
    private List<GertPoint> _points = null;
    
    /// <summary>
    /// Creates a new polygon with no points.
    /// </summary>
    public GertPolygon()
    {
      _points = new List<GertPoint>();
    }
    
    /// <summary>
    /// Creates a new polygon with the given points.
    /// </summary>
    /// <param name="points">The points of the polygon.</param>
    public GertPolygon(GertPoint[] points)
    {
      _points = new List<GertPoint>(points);
    }
    
    /// <summary>
    /// Gets the number of points of this polygon.
    /// </summary>
    public int Count
    {
      get { return _points.Count; }
    }    
    
  }
}
